package main

import "time"
import "fmt"

func main() {
    timer1 := time.NewTimer(2 * time.Second)
    <-timer1.C
    fmt.Println("timer 1 expired")
    
    timer2 := time.NewTimer(5 * time.Second)
    go func() {
        <-timer2.C
        fmt.Println("timer2 expired")
    }()
    
    // 
    time.Sleep(6 * time.Second)    
    stop2 := timer2.Stop()
    if stop2 {
        fmt.Println("timer2 Stopped")
    }
}
